package org.lmind.arena.ui;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public class ImageSpirit extends SpiritBase {
	
	private BufferedImage image;

	public BufferedImage getImage() {
		return image;
	}

	public void setImage(BufferedImage image) {
		this.image = image;
	}

	@Override
	protected void doRender(Graphics2D graphics) {
		
		Position pos = getPosition();
		graphics.drawImage(image, pos.getX(), pos.getY(), image.getWidth(), image.getHeight(), 
				0, 0, image.getWidth(), image.getHeight(), null);
		
	}
	
}
